import {mainEchart} from '../index';

export default class pieTemplate extends mainEchart {
    defaultOption = {
        color: ['#F59D15', '#17B1E6', '#3CCD59', '#09C2D8', '#F5222D'],
        title: {
            left: '15%',
            top: 'center',
            textStyle: {
                fontSize: 20,
                color: 'rgba(255,255,255,.72)'
            },
        },
        tooltip: {
            show: false,
            trigger: 'item'
        },
        legend: {
            show: true,
            itemWidth: 6,
            itemHeight: 6,
            orient: 'vertical',
            top: 'center',
            right: 20,
            textStyle: {
                color: '#fff',
                rich: {
                    name: {
                        width: 80
                    },
                    peccent: {
                        width: 60
                    },
                    value: {}
                }
            }
        },
        series: [
            {
                name: '',
                type: 'pie',
                radius: ['70%', '85%'],
                label: {
                    show: false,
                    position: 'center',
                    textStyle: {
                        fontSize: 20,
                        color: 'rgba(255,255,255,.72)'
                    },
                },
                labelLine: {
                    show: false
                },
            }
        ]
    }

    constructor(options) {
        super(options);
    }
}